const rules = {
  sort:[
    { required: true, message: '权重不能为空', trigger: 'change' }
  ],
  summary: [
    { required: true, message: '专题简介不能为空', trigger: 'blur' }
  ],
  cover: [
    { required: true, message: '专题封面不能为空', trigger: 'blur' }
  ],
  lecturer: [
    { required: true, message: '专题主讲人不能为空', trigger: 'blur' }
  ],
  topicName: [
    { required: true, message: '专题名称不能为空', trigger: 'blur' }
  ],
  commodities: [
    { type: 'array', required: true, message: '请选择课程', trigger: 'change' }
  ],
  recommend:[
    { required: true, message: '推荐不能为空', trigger: 'change' }
  ]
}
const defaultParams = {
  recommend: false,
  summary:'',
  type: 1,
  cover:'',
  lecturer:'',
  topicName:'',
  commodities:[]
}
export {
  rules,
  defaultParams
}
